//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.neurosky.thinkgear;

public class MeanRemove {
    private float[] a;
    private float b;
    private int c;

    public MeanRemove() {
    }

    public float[] removeMean(float[] var1) {
        this.a = new float[var1.length];
        this.b = 0.0F;

        for(this.c = 0; this.c < var1.length; ++this.c) {
            this.b += var1[this.c];
        }

        this.b /= (float)var1.length;

        for(this.c = 0; this.c < var1.length; ++this.c) {
            this.a[this.c] = var1[this.c] - this.b;
        }

        return this.a;
    }
}
